<div class="row-fluid">
    <div class="image-wrapper" style="width: 500px; margin: 0 auto 20px;">
        <?php echo $this->Html->image('app/logo.png',array('height'=>'450px','width'=>'450px')); ?>
    </div>
</div>
<?php
    echo $this->Form->create('StudentUser', array('id' => 'form-signin', 'class' => 'form-signin', 'inputDefaults' => array('label' => false,'div' => false)));
    if($status['status']){
        $d = $status['data']['ForgotPassToken'];
    ?>
        <?php
        $msg_type = $this->Session->read('msg_type');
        $flash_msg = $this->Session->read('Message');

        if(isset($flash_msg['flash'])){
            ?>
            <div id="loginmsg" style="">
                <?php echo $this->Message->msg('Login',$this->Session->flash(),$msg_type); ?>
            </div>
        <?php
        }
        ?>
        <h4 class="form-signin-heading">Enter New Password</h4>
        <?php echo $this->Form->input('password', array('type'=>'password','id'=>'password', 'class' => 'input-block-level', 'required'=>'','placeholder'=>'Password','div' => false, 'label' => false,)); ?>
        <?php echo $this->Form->input('id', array('type'=>'hidden','id'=>'id','default'=>$d['student_user_id'],'div' => false, 'label' => false)); ?>
        <?php echo $this->Form->input('token_id', array('type'=>'hidden','id'=>'token_id','default'=>$d['id'],'div' => false, 'label' => false)); ?>
        <button class="btn btn-large btn-primary" type="submit">Reset Password</button>
    <?php
    }
    else{
    ?>
        <?php
        $flash_msg = "Invalid Password Reset Token";
        ?>
        <div id="loginmsg" style="">
            <?php echo $this->Message->msg('Reset Password',$flash_msg,'error'); ?>
        </div>
        <?php

        ?>
        <a href="<?php echo $this->Html->url(array('controller' => 'Student', 'action' => 'login')); ?>"><< Login</a>
    <?php
    }
    echo $this->Form->end();
?>


<!-- URL -->

<?php
    //echo $this->Html->script("scripts/login.js");
?>